BIN=monitor
#MYSQL_DEMO=mysql_demo
CFLAG = -o
SRC = src/main.c \
		src/mysql_util.c \
		src/sysinfo.c
all:
	${CC} -g -o ${BIN} -I/usr/include/mysql/ ${SRC} -L/usr/lib64/mysql/ -lmysqlclient -lz
	#${CC} -g -o ${MYSQL_DEMO} -I/usr/include/mysql/ src/mysql_demo.c src/mysql_util.c -L/usr/lib64/mysql/ -lmysqlclient -lz

clean:
	rm -rvf *.o
	rm -rvf ${BIN}
	#rm -rvf ${MYSQL_DEMO}
